﻿using System.Xml.Serialization;

namespace HamcoWcs.Models.TibcoMessage
{

    [XmlRoot("MESSAGE")]
    public class PalletTransportPriorityChangedMessage : BaseTibcoMessage<PalletTransportPriorityChangedMessageBody>
    {
        public PalletTransportPriorityChangedMessage()
        {

        }
        public PalletTransportPriorityChangedMessage(PalletTransportPriorityChangedMessageBody body, string inboxName = "", string listener = "") : base("PalletTransportPriorityChanged", body, inboxName, listener)
        {
        }
    }


    public class PalletTransportPriorityChangedMessageBody : EventMessageBase
    {
        public PalletTransportPriorityChangedMessageBody()
        {
        }

        public PalletTransportPriorityChangedMessageBody(string transportJobName, string priority)
        {
            TransportJobName = transportJobName;
            Priority = priority;
        }

        [XmlElement("TRANSPORTJOBNAME")]
        public string TransportJobName { get; set; }
        [XmlElement("PRIORITY")]
        public string Priority { get; set; }
    }
}
